――――――――――――――――――――――――――――――――――――――――――――――――――
Touhou Community Reliant Automatic Patcher logfile
Branch: stable
Version: 2019-12-29
Build time: Dec 29 2019 18:15:42
Built by: brliron
Command line: "D:\Games\Touhou\Touhou 12.5 - Double Spoiler\th125.exe"
――――――――――――――――――――――――――――――――――――――――――――――――――

Run configuration file: D:\Games\Touhou\Touhou 12.5 - Double Spoiler\thcrap\config\thpatch-en.js

Initializing patches...
EXE file name: D:\Games\Touhou\Touhou 12.5 - Double Spoiler\th125.exe
(JSON) Resolving versions.js... 
 + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tsa/versions.js
  + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tasofro/versions.js
Hashing executable... → th125 v1.00a (original) (codepage 0)
(JSON) Resolving configuration for th125.js... 
 + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tsa/global.js
 + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tsa/th125.js
 + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tsa/th125.v1.00a.js
  + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tasofro/global.js
   + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/script_latin/global.js
   + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/script_latin/th125.js
Game directory: D:\Games\Touhou\Touhou 12.5 - Double Spoiler
Plug-in directory: D:\Games\Touhou\Touhou 12.5 - Double Spoiler\thcrap

Initializing plug-ins...
(Font) Loading Aroania.ttf (426296 bytes)...
(Font) Loading Cirno.ttf (28952 bytes)...
(Font) Loading THBiolinum.otf (557212 bytes)...
(JSON) Resolving stringdefs.js... 
 + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tsa/stringdefs.js
   + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/script_latin/stringdefs.js
     + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/stringdefs.js
(JSON) Resolving th125/stringlocs.js... 
 + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tsa/th125/stringlocs.v1.00a.js
[Plugin] thcrap_tasofro.dll: not used for this game
[Plugin] thcrap_tsa.dll: initialized and active
(JSON) Resolving th125/help.js... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/help.js
(JSON) Resolving th125/missions.js... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/missions.js
(JSON) Resolving th125/loops.js... not found
(JSON) Resolving themes.js... 
 + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tsa/themes.js
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/themes.js
(JSON) Resolving th125/musiccmt.js... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/musiccmt.js
(JSON) Resolving th125/spells.js... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/spells.js
(JSON) Resolving th125/spellcomments.js... not found
Applying thcrap detours to D:\Games\Touhou\Touhou 12.5 - Double Spoiler\th125.exe...
Detouring DLL functions (dinput8.dll)...
( 1/ 1) DirectInput8Create... OK
Detouring DLL functions (dsound.dll)...
( 1/ 3) DirectSoundCaptureEnumerateA... not found
( 2/ 3) DirectSoundEnumerateA... not found
( 3/ 3) DirectSoundCreate8... OK
Detouring DLL functions (d3d9.dll)...
( 1/ 1) Direct3DCreate9... OK
Detouring DLL functions (winmm.dll)...
( 1/ 1) joyGetPosEx... OK
Detouring DLL functions (kernel32.dll)...
( 1/41) CopyFileA... not found
( 2/41) CopyFileExA... not found
( 3/41) CreateDirectoryA... OK
( 4/41) CreateFileA... OK
( 5/41) CreateFileMappingA... not found
( 6/41) CreateProcessA... OK
( 7/41) DeleteFileA... OK
( 8/41) FindFirstFileA... OK
( 9/41) FindNextFileA... OK
(10/41) FormatMessageA... OK
(11/41) GetCurrentDirectoryA... OK
(12/41) GetEnvironmentVariableA... OK
(13/41) GetFileAttributesA... not found
(14/41) GetFileAttributesExA... not found
(15/41) GetFullPathNameA... not found
(16/41) GetCommandLineA... OK
(17/41) GetModuleFileNameA... OK
(18/41) GetPrivateProfileIntA... not found
(19/41) GetPrivateProfileStringA... not found
(20/41) GetStartupInfoA... OK
(21/41) GetTempPathA... not found
(22/41) IsDBCSLeadByte... not found
(23/41) LoadLibraryA... OK
(24/41) MoveFileA... not found
(25/41) MoveFileExA... not found
(26/41) MoveFileWithProgressA... not found
(27/41) MultiByteToWideChar... OK
(28/41) OpenFileMappingA... not found
(29/41) ReadFile... OK
(30/41) RemoveDirectoryA... not found
(31/41) SetCurrentDirectoryA... OK
(32/41) SetEnvironmentVariableA... OK
(33/41) WideCharToMultiByte... OK
(34/41) WriteFile... OK
(35/41) WritePrivateProfileStringA... not found
(36/41) ExitProcess... OK
(37/41) CreateProcessW... not found
(38/41) CreateRemoteThread... not found
(39/41) LoadLibraryW... not found
(40/41) CloseHandle... OK
(41/41) SetFilePointer... OK
Detouring DLL functions (user32.dll)...
( 1/22) CharNextA... not found
( 2/22) CreateDialogParamA... not found
( 3/22) CreateWindowExA... OK
( 4/22) DefWindowProcA... OK
( 5/22) DialogBoxParamA... OK
( 6/22) DrawTextA... OK
( 7/22) GetClassInfoA... not found
( 8/22) GetClassInfoExA... not found
( 9/22) GetWindowLongA... not found
(10/22) GetWindowLongPtrA... not found
(11/22) InsertMenuItemA... not found
(12/22) LoadStringA... not found
(13/22) MessageBoxA... OK
(14/22) RegisterClassA... OK
(15/22) RegisterClassExA... not found
(16/22) SetDlgItemTextA... not found
(17/22) SetWindowLongA... OK
(18/22) SetWindowLongPtrA... not found
(19/22) SetWindowTextA... not found
(20/22) TabbedTextOutA... not found
(21/22) UnregisterClassA... not found
(22/22) GetWindowRect... OK
Detouring DLL functions (gdi32.dll)...
( 1/14) CreateFontA... OK
( 2/14) CreateFontIndirectA... not found
( 3/14) CreateFontIndirectExA... not found
( 4/14) EnumFontsA... not found
( 5/14) EnumFontFamiliesA... not found
( 6/14) EnumFontFamiliesExA... not found
( 7/14) ExtTextOutA... not found
( 8/14) GetGlyphOutlineA... not found
( 9/14) GetTextExtentPoint32A... not found
(10/14) TextOutA... OK
(11/14) CreateCompatibleDC... OK
(12/14) DeleteDC... OK
(13/14) DeleteObject... OK
(14/14) SelectObject... OK
Initialization stage 0...
-------------------------
Applying binary hacks...
------------------------
( 1/ 1) 0x004DE413 Crack SteamStub by disabling its integrity check (steamstub_crack)... expected bytes not matched, skipping...
------------------------
Failed. Jumping to last stage...
-------------------------
Initialization stage 2...
-------------------------
Applying binary hacks...
------------------------
( 1/13) 0x004653C0 Restore the game's built-in logging (log_restore)... OK
( 2/13) 0x0045F8DC Safe sprintf (esp+14) (sprintf_call_esp+14)... OK
( 3/13) 0x0045FA79 Safe sprintf (esp+18) (sprintf_call_esp+18)... OK
( 4/13) 0x0045F903 Safe sprintf (replace) (sprintf_rep)... OK
( 5/13) 0x0045FABC Safe sprintf (replace) (sprintf_rep)... OK
( 6/13) 0x0045F979 Spell card alignment (spell_align)... OK
( 7/13) 0x0045FA8A Correct alignment for centered text (center_align)... OK
( 8/13) 0x0044CFCB Ensure correct size of ruby font (font_ruby_size)... OK
( 9/13) 0x0042D76B Center-align the help messages, #1 (first line) (help_align_1)... OK
(10/13) 0x0042D7A5 Center-align the help messages, #2 (second line, reusing the stack of the first call) (help_align_2)... OK
(11/13) 0x0042D7DB Center-align the help messages, #3 (clean the stack) (help_align_3)... OK
(12/13) 0x0045FAD2 Hack around the combined +11 and 77,78% scaling factors to correctly align the help messages (help_align_scalefix)... OK
(13/13) 0x0045F9FF Unpatch the questionable spell name width addition in the English patch (unpatch_spell_align)... OK
------------------------
Setting up breakpoints... (source cave at 0x00B30000, call cave at 0x00B40000)
-------------------------
( 1/26) 0x0041C577 ruby_offset... OK
( 2/26) 0x0041C636 ruby_offset... OK
( 3/26) 0x00445F80 mission... OK
( 4/26) 0x00445ED3 mission_check_furi_a... OK
( 5/26) 0x00445B9F mission_check_furi_a#stage98... OK
( 6/26) 0x00445C90 mission_check_furi_a#stage98... OK
( 7/26) 0x00445D44 mission_check_furi_a#stage98... OK
( 8/26) 0x00445DF0 mission_check_furi_a#stage98... OK
( 9/26) 0x0045F8B0 mission_printf_hook... OK
(10/26) 0x004630DE file_size... OK
(11/26) 0x0046311A file_load... fixing rel.addr. 0xFFFE7071 to 0xFF91A04B... OK
(12/26) 0x0044A2B3 file_loaded... OK
(13/26) 0x00443683 spell_id#menu... OK
(14/26) 0x0040E31C spell_id#ingame_from_menu... OK
(15/26) 0x0042B383 spell_id#ingame_from_next... OK
(16/26) 0x00446A0F spell_id#replay... OK
(17/26) 0x0040CFC4 spell_name... OK
(18/26) 0x004436AB spell_name#menu... OK
(19/26) 0x0044890E music_title... OK
(20/26) 0x00448AC9 music_cmt#first... OK
(21/26) 0x00448ABC music_cmt#track... OK
(22/26) 0x00448B81 music_cmt#track... OK
(23/26) 0x00448B8E music_cmt... OK
(24/26) 0x0042D758 gentext#help_id... OK
(25/26) 0x0042D768 gentext#help_line_1... OK
(26/26) 0x0042D7A5 gentext#help_line_2... OK
-------------------------
-----------------------
---------------------------
Complete run configuration:
---------------------------
{
  "thcrap_version_min": "0x20170905",
  "thcrap_url": "http://thpatch.net/wiki/Project:Download",
  "binhacks": {
    "log_restore": {
      "code": "e9[log_printf]",
      "title": "Restore the game's built-in logging",
      "addr": "0x4653c0"
    },
    "menu_desc_align": {
      "code": "52 ff75ac ff75b0 e8[GetTextExtentForFontID] 8d440010 50 db04e4 58 59 89ca 90909090",
      "title": "Menu description alignment"
    },
    "result_spell_align": {
      "code": "31c0",
      "title": "Remove spell \"alignment\" in the result screen"
    },
    "spell_name_fetch": {
      "code": "8b4d0c5131c9515151",
      "title": "Prepare deferred spell name fetching"
    },
    "sprintf_call_esp+14": {
      "code": "50e8[strings_vsprintf]8944e414",
      "title": "Safe sprintf (esp+14)",
      "addr": "Rx5f8dc"
    },
    "sprintf_call_esp+18": {
      "code": "50e8[strings_vsprintf]8944e418",
      "title": "Safe sprintf (esp+18)",
      "addr": "Rx5fa79"
    },
    "sprintf_call_esp+1c": {
      "code": "50e8[strings_vsprintf]8944e41c",
      "title": "Safe sprintf (esp+1c)"
    },
    "sprintf_call_esp+34": {
      "code": "50e8[strings_vsprintf]8944e434",
      "title": "Safe sprintf (esp+34)"
    },
    "sprintf_call_esp+38": {
      "code": "e8[strings_vsprintf]89442434",
      "title": "Safe sprintf (esp+34)"
    },
    "sprintf_call_esp+3c": {
      "code": "50e8[strings_vsprintf]8944e43c",
      "title": "Safe sprintf (esp+3c)"
    },
    "sprintf_call_ebp-50": {
      "code": "50e8[strings_vsprintf]8945b0",
      "title": "Safe sprintf (ebp-50)"
    },
    "sprintf_call_ebp-88": {
      "code": "50e8[strings_vsprintf]898578ffffff",
      "title": "Safe sprintf (ebp-88)"
    },
    "sprintf_call_ebp-8c": {
      "code": "50e8[strings_vsprintf]898574ffffff",
      "title": "Safe sprintf (ebp-8c)"
    },
    "sprintf_call_ebp-208": {
      "code": "5190909090909090909090e8[strings_vsprintf]83c40c509090",
      "title": "Safe sprintf (ebp-208)"
    },
    "sprintf_call_ebp-200": {
      "code": "5090909090909090909090e8[strings_vsprintf]8b4d0c83c40c509090",
      "title": "Safe sprintf (ebp-200)"
    },
    "sprintf_msvcrt14_esp+34": {
      "title": "Safe Visual Studio 2015-style sprintf (esp+34)",
      "code": "e8[strings_vsprintf_msvcrt14]89442434"
    },
    "sprintf_msvcrt14_esp+3c": {
      "title": "Safe Visual Studio 2015-style sprintf (esp+3c)",
      "code": "e8[strings_vsprintf_msvcrt14]8944243c"
    },
    "sprintf_msvcrt14_ebp-10c": {
      "title": "Safe Visual Studio 2015-style sprintf (ebp-10c)",
      "code": "e8[strings_vsprintf_msvcrt14]8985f4feffff"
    },
    "sprintf_rep": {
      "code": "8b",
      "title": "Safe sprintf (replace)",
      "addr": [
        "Rx5f903",
        "Rx5fabc"
      ]
    },
    "meiryo_strcmp_remove": {
      "code": "9090",
      "title": "Don't restrict use of the Meiryo font to Japanese locale"
    },
    "ending_copy_rem": {
      "title": "Remove the useless string copy and buffer overflow in ending messages, #1 (remember line start and skip to the end of the string)"
    },
    "ending_copy_rep": {
      "code": "8b",
      "title": "Remove the useless string copy and buffer overflow in ending messages, #2 (LEA → MOV)"
    },
    "spell_align": {
      "title": "Spell card alignment",
      "code": "8b8e880400008bbefc030000d94738c1e90483e101518b94e4b000000052ffb4e4a8000000ffb4e4a8000000ff3508094d0052e8[GetTextExtentForFont]50db04e458eb2e90909090909090909090909090909090909090909090909090909090909090909090909090909090909090909090",
      "addr": "0x45f979"
    },
    "antitamper_remove_check": {
      "title": "Don't quit the game on an invalid anti-tampering checksum",
      "code": "33c0 c3"
    },
    "hud_force_redraw": {
      "title": "Redraw the HUD every frame, because we might be drawing TL notes there",
      "code": "eb"
    },
    "center_align": {
      "code": "ffb424 9c000000 ff30 e8[GetTextExtentForFontID] 83c0 03 d1e0 89c3 8b8e 88040000 8bbe fc030000 d947 38 c1e9 04",
      "title": "Correct alignment for centered text",
      "addr": "Rx5fa8a"
    },
    "font_ruby_size": {
      "code": "6a0f",
      "title": "Ensure correct size of ruby font",
      "addr": "0x44cfcb"
    },
    "help_align_1": {
      "title": "Center-align the help messages, #1 (first line)",
      "addr": "Rx2d76b",
      "code": "6a 00 68 00003000 68 c0e0ff00 33db 8db5 b8030000 e8 bc220300"
    },
    "help_align_2": {
      "title": "Center-align the help messages, #2 (second line, reusing the stack of the first call)",
      "addr": "Rx2d7a5",
      "code": "895424 10 9090909090909090 8db5 74080000 e8 84220300"
    },
    "help_align_3": {
      "title": "Center-align the help messages, #3 (clean the stack)",
      "addr": "Rx2d7db",
      "code": "83c4 14"
    },
    "help_align_scalefix": {
      "code": "83c0 0e",
      "title": "Hack around the combined +11 and 77,78% scaling factors to correctly align the help messages",
      "addr": "Rx5fad2"
    },
    "unpatch_spell_align": {
      "addr": "Rx5f9ff",
      "title": "Unpatch the questionable spell name width addition in the English patch",
      "code": "508b02578bbc24c0000000508bc5e8eefdffff8b8c2494000000838e84040000015f5d5b33cce85aba000081c48c000000c3cccccccc"
    },
    "ret": {
      "code": "c3",
      "title": "Returns from a function"
    },
    "meiryo_disable": {
      "code": "83c414 909090",
      "title": "Disable the enumeration of Meiryo for compatibility to existing font settings"
    },
    "font_dialog_params": {
      "code": "6a036a006a0068000000006a006a006a006890010000",
      "title": "Set parameters for alternate dialog font"
    },
    "font_dialog_set": {
      "code": "6a019090",
      "title": "Use alternate dialog font"
    }
  },
  "breakpoints": {
    "ruby_offset": {
      "font_dialog": 0,
      "font_ruby": 2,
      "str": "esi",
      "offset": "eax",
      "cavesize": 5,
      "addr": [
        "Rx1c577",
        "Rx1c636"
      ]
    },
    "ascii_params": {
      "cavesize": 5
    },
    "mission": {
      "line": "EAX",
      "stage": 4,
      "scene": 8,
      "chara": 12,
      "ret_fixup": 12,
      "cavesize": 6,
      "addr": "0x445F80"
    },
    "mission_check_furi_a": {
      "line": "EDI",
      "cavesize": 5,
      "addr": "0x445ED3"
    },
    "mission_check_furi_a#stage98": {
      "line": "EBX",
      "cavesize": 8,
      "addr": [
        "0x445B9F",
        "0x445C90",
        "0x445D44",
        "0x445DF0"
      ]
    },
    "mission_printf_hook": {
      "cavesize": 6,
      "addr": "0x45F8B0"
    },
    "file_size": {
      "file_size": "edi",
      "file_name": "ebp",
      "cavesize": 6,
      "addr": "0x4630de"
    },
    "file_load": {
      "file_buffer": "ebx",
      "stack_clear_size": "8",
      "cavesize": 5,
      "addr": "0x46311a"
    },
    "file_loaded": {
      "cavesize": 5,
      "addr": "0x44a2b3"
    },
    "spell_id#menu": {
      "spell_id": "ecx",
      "cavesize": 5,
      "addr": "0x443683"
    },
    "spell_id#ingame_from_menu": {
      "spell_id": "esi",
      "cavesize": 6,
      "addr": "0x40e31c"
    },
    "spell_id#ingame_from_next": {
      "spell_id": "eax",
      "cavesize": 6,
      "addr": "Rx2b383"
    },
    "spell_id#replay": {
      "spell_id": "edx",
      "cavesize": 6,
      "addr": "0x446a0f"
    },
    "spell_name": {
      "spell_name": "esi",
      "cavesize": 9,
      "addr": "0x40cfc4"
    },
    "spell_name#menu": {
      "spell_name": "eax",
      "cavesize": 5,
      "addr": "0x4436ab"
    },
    "music_title": {
      "str": "eax",
      "track": "ebx",
      "format_id": "Music Room Numbered Title",
      "cavesize": 8,
      "addr": "0x44890e"
    },
    "music_cmt#first": {
      "str": "eax",
      "line_num": "ecx",
      "format_id": "Music Room Note Title",
      "cavesize": 5,
      "addr": "0x448ac9"
    },
    "music_cmt#track": {
      "track": "eax",
      "cavesize": 6,
      "addr": [
        "0x448abc",
        "0x448b81"
      ]
    },
    "music_cmt": {
      "str": "ecx",
      "line_num": "edx",
      "format_id": "Music Room Note Title",
      "cavesize": 5,
      "addr": "0x448b8e"
    },
    "gentext#help_id": {
      "file": "help.js",
      "ids": "edx",
      "cavesize": 6,
      "addr": "Rx2d758"
    },
    "gentext#help_line_1": {
      "str": "edx",
      "cavesize": 5,
      "addr": "Rx2d768"
    },
    "gentext#help_line_2": {
      "str": "edx",
      "cavesize": 5,
      "addr": "Rx2d7a5"
    }
  },
  "tlnotes": {
    "reference_resolution": [
      1280,
      960
    ],
    "font": "'MS Gothic' 32 0 400 DEFAULT_QUALITY",
    "valign": "top",
    "region_size": [
      184,
      448
    ],
    "region_topleft": [
      1056,
      188
    ]
  },
  "title": "ダブルスポイラー　～ 東方文花帖",
  "latest": "v1.00a",
  "formats": {
    "msg": "msg11",
    "anm": "anm11"
  },
  "tsa_font_block": {
    "offset": -4,
    "min": 0,
    "max": 3,
    "addr": "Rxd0908"
  },
  "init_stages": [
    {
      "binhacks": {
        "steamstub_crack": {
          "title": "Crack SteamStub by disabling its integrity check",
          "addr": "Rxde413",
          "code": "eb",
          "expected": "74"
        }
      },
      "breakpoints": {
        "init_next_stage#1": {
          "addr": "Rxdf036",
          "module": "eax",
          "cavesize": 6
        },
        "init_next_stage#game": {
          "addr": "Rxdd333",
          "cavesize": 5
        }
      }
    },
    {
      "The addresses here are relative to": "SteamDRMP.dll",
      "binhacks": {
        "steamdrm_crack": {
          "title": "Crack SteamDRM: Remove all communication with the Steam client",
          "addr": "Rx66d0",
          "code": "90909090909090909090 b030 884513 e9"
        }
      }
    }
  ],
  "font": "Touhou Biolinum",
  "fontrules": {
    "* 15 * 700": "* 22 * 100 PROOF_QUALITY"
  },
  "game": "th125",
  "console": false,
  "dat_dump": false,
  "patches": [
    {
      "id": "base_tsa",
      "min_build": "0x20140528",
      "servers": [
        "https://mirrors.thpatch.net/nmlgc/base_tsa/"
      ],
      "thcrap_version_min": "0x20191214",
      "title": "Basic support for Team Shanghai Alice games",
      "url_engine": "http://thpatch.net/wiki/Project:Download\n\nThis is the last build you'll ever have to download and extract manually, because we now have digitally signed automatic updates of thcrap itself!",
      "archive": "D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tsa/"
    },
    {
      "dependencies": [
        "base_tsa"
      ],
      "fonts": {
        "Aroania.ttf": true,
        "Cirno.ttf": true,
        "THBiolinum.otf": true
      },
      "id": "script_latin",
      "servers": [
        "https://mirrors.thpatch.net/nmlgc/script_latin/"
      ],
      "title": "Shared data for languages using Latin script",
      "archive": "D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/script_latin/"
    },
    {
      "dependencies": [
        "base_tsa"
      ],
      "id": "western_name_order",
      "servers": [
        "https://mirrors.thpatch.net/nmlgc/western_name_order/"
      ],
      "title": "Western name order",
      "archive": "D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/western_name_order/"
    },
    {
      "id": "lang_en",
      "title": "English language pack",
      "dependencies": [
        "nmlgc/base_tsa",
        "nmlgc/base_tasofro",
        "nmlgc/script_latin",
        "nmlgc/western_name_order"
      ],
      "update": true,
      "servers": [
        "https://srv.thpatch.net/lang_en/"
      ],
      "archive": "D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/"
    }
  ],
  "thcrap_dir": "D:\\Games\\Touhou\\Touhou 12.5 - Double Spoiler\\thcrap",
  "run_cfg_fn": "D:\\Games\\Touhou\\Touhou 12.5 - Double Spoiler\\thcrap\\config\\thpatch-en.js",
  "build": "v1.00a",
  "patchhooks": {
    "msg*.dat": [
      {
        "patch_func": 1480361056,
        "patch_size_func": 0
      }
    ],
    "p*.msg": [
      {
        "patch_func": 1480361056,
        "patch_size_func": 0
      }
    ],
    "s*.msg": [
      {
        "patch_func": 1480361056,
        "patch_size_func": 0
      }
    ],
    "msg*.msg": [
      {
        "patch_func": 1480361056,
        "patch_size_func": 0
      }
    ],
    "e*.msg": [
      {
        "patch_func": 1480361024,
        "patch_size_func": 0
      }
    ],
    "*.anm": [
      {
        "patch_func": 1480330832,
        "patch_size_func": 1480366512
      }
    ],
    "*.std": [
      {
        "patch_func": 0,
        "patch_size_func": 1480366512
      }
    ],
    "*bgm*.fmt": [
      {
        "patch_func": 1480341552,
        "patch_size_func": 1480342624
      }
    ]
  }
}---------------------------
[Steam] Initialization for AppID 1100170 failed
Applying thcrap detours to D:\Games\Touhou\Touhou 12.5 - Double Spoiler\vpatch_th125.dll...
Detouring DLL functions (kernel32.dll)...
( 1/41) CopyFileA... not found
( 2/41) CopyFileExA... not found
( 3/41) CreateDirectoryA... not found
( 4/41) CreateFileA... not found
( 5/41) CreateFileMappingA... not found
( 6/41) CreateProcessA... OK
( 7/41) DeleteFileA... not found
( 8/41) FindFirstFileA... not found
( 9/41) FindNextFileA... not found
(10/41) FormatMessageA... not found
(11/41) GetCurrentDirectoryA... not found
(12/41) GetEnvironmentVariableA... not found
(13/41) GetFileAttributesA... not found
(14/41) GetFileAttributesExA... not found
(15/41) GetFullPathNameA... not found
(16/41) GetCommandLineA... OK
(17/41) GetModuleFileNameA... OK
(18/41) GetPrivateProfileIntA... OK
(19/41) GetPrivateProfileStringA... not found
(20/41) GetStartupInfoA... OK
(21/41) GetTempPathA... not found
(22/41) IsDBCSLeadByte... not found
(23/41) LoadLibraryA... OK
(24/41) MoveFileA... not found
(25/41) MoveFileExA... not found
(26/41) MoveFileWithProgressA... not found
(27/41) MultiByteToWideChar... OK
(28/41) OpenFileMappingA... not found
(29/41) ReadFile... not found
(30/41) RemoveDirectoryA... not found
(31/41) SetCurrentDirectoryA... not found
(32/41) SetEnvironmentVariableA... not found
(33/41) WideCharToMultiByte... OK
(34/41) WriteFile... OK
(35/41) WritePrivateProfileStringA... not found
(36/41) ExitProcess... OK
(37/41) CreateProcessW... not found
(38/41) CreateRemoteThread... OK
(39/41) LoadLibraryW... not found
(40/41) CloseHandle... OK
(41/41) SetFilePointer... not found
Detouring DLL functions (user32.dll)...
( 1/22) CharNextA... not found
( 2/22) CreateDialogParamA... not found
( 3/22) CreateWindowExA... OK
( 4/22) DefWindowProcA... not found
( 5/22) DialogBoxParamA... not found
( 6/22) DrawTextA... not found
( 7/22) GetClassInfoA... not found
( 8/22) GetClassInfoExA... not found
( 9/22) GetWindowLongA... not found
(10/22) GetWindowLongPtrA... not found
(11/22) InsertMenuItemA... not found
(12/22) LoadStringA... not found
(13/22) MessageBoxA... not found
(14/22) RegisterClassA... not found
(15/22) RegisterClassExA... not found
(16/22) SetDlgItemTextA... not found
(17/22) SetWindowLongA... OK
(18/22) SetWindowLongPtrA... not found
(19/22) SetWindowTextA... not found
(20/22) TabbedTextOutA... not found
(21/22) UnregisterClassA... not found
(22/22) GetWindowRect... not found
Detouring DLL functions (shlwapi.dll)...
( 1/10) PathFileExistsA... not found
( 2/10) PathFindFileNameA... not found
( 3/10) PathMatchSpecA... not found
( 4/10) PathRemoveFileSpecA... OK
( 5/10) PathAddBackslashA... OK
( 6/10) PathIsDirectoryA... not found
( 7/10) PathIsRelativeA... not found
( 8/10) PathCanonicalizeA... not found
( 9/10) PathCombineA... not found
(10/10) PathAppendA... OK
Detouring DLL functions (dinput8.dll)...
( 1/ 1) DirectInput8Create... OK
C:\Users\Anon\AppData\Roaming\ShanghaiAlice\th125\th125.cfg Load ... 

C:\Users\Anon\AppData\Roaming\ShanghaiAlice\th125\th125.cfg write ...

D:\Games\Touhou\Touhou 12.5 - Double Spoiler\th125.exe Load ... 

(Data) Resolving th125/th125_0100a.ver... not found
th125_0100a.ver Decode ... 

(Data) Resolving th125/se_plst00.wav... not found
se_plst00.wav Decode ... 

CreateCompatibleDC(0x00000000) -> 0x930115F1
(Font) Creating ('Touhou Biolinum' 32 0 400 ANTIALIASED_QUALITY)...
(Font) Creating ('Touhou Biolinum' 32 0 600 ANTIALIASED_QUALITY)...
(Font) Replacement rules applied to ('Touhou Biolinum' 15 0 700 ANTIALIASED_QUALITY):
(Font) • (* 15 * 700) → (* 22 * 100 PROOF_QUALITY) (priority)
(Font) Creating ('Touhou Biolinum' 22 0 100 PROOF_QUALITY)...
(Font) Replacement rules applied to ('Touhou Biolinum' 15 0 700 ANTIALIASED_QUALITY):
(Font) • (* 15 * 700) → (* 22 * 100 PROOF_QUALITY) (priority)
(Font) Creating ('Touhou Biolinum' 22 0 100 PROOF_QUALITY)...
(Data) Resolving th125/se_enep00.wav... not found
se_enep00.wav Decode ... 

(Data) Resolving th125/se_pldead00.wav... not found
se_pldead00.wav Decode ... 

(Data) Resolving th125/se_power0.wav... not found
se_power0.wav Decode ... 

(Data) Resolving th125/se_power1.wav... not found
se_power1.wav Decode ... 

(Data) Resolving th125/se_tan00.wav... not found
se_tan00.wav Decode ... 

(Data) Resolving th125/se_tan01.wav... not found
se_tan01.wav Decode ... 

(Data) Resolving th125/se_tan02.wav... not found
se_tan02.wav Decode ... 

(Data) Resolving th125/se_ok00.wav... not found
se_ok00.wav Decode ... 

(Data) Resolving th125/se_cancel00.wav... not found
se_cancel00.wav Decode ... 

(Data) Resolving th125/se_select00.wav... not found
se_select00.wav Decode ... 

(Data) Resolving th125/se_gun00.wav... not found
se_gun00.wav Decode ... 

(Data) Resolving th125/se_cat00.wav... not found
se_cat00.wav Decode ... 

(Data) Resolving th125/se_lazer00.wav... not found
se_lazer00.wav Decode ... 

(Data) Resolving th125/se_lazer01.wav... not found
se_lazer01.wav Decode ... 

(Data) Resolving th125/se_enep01.wav... not found
se_enep01.wav Decode ... 

(Data) Resolving th125/se_damage00.wav... not found
se_damage00.wav Decode ... 

(Data) Resolving th125/se_item00.wav... not found
se_item00.wav Decode ... 

(Data) Resolving th125/se_item01.wav... not found
se_item01.wav Decode ... 

(Data) Resolving th125/se_kira00.wav... not found
se_kira00.wav Decode ... 

(Data) Resolving th125/se_kira01.wav... not found
se_kira01.wav Decode ... 

(Data) Resolving th125/se_kira02.wav... not found
se_kira02.wav Decode ... 

(Data) Resolving th125/se_timeout.wav... not found
se_timeout.wav Decode ... 

(Data) Resolving th125/se_graze.wav... not found
se_graze.wav Decode ... 

(Data) Resolving th125/se_powerup.wav... not found
se_powerup.wav Decode ... 

(Data) Resolving th125/se_pause.wav... not found
se_pause.wav Decode ... 

(Data) Resolving th125/se_cardget.wav... not found
se_cardget.wav Decode ... 

(Data) Resolving th125/se_option.wav... not found
se_option.wav Decode ... 

(Data) Resolving th125/se_damage01.wav... not found
se_damage01.wav Decode ... 

(Data) Resolving th125/se_timeout2.wav... not found
se_timeout2.wav Decode ... 

(Data) Resolving th125/se_invalid.wav... not found
se_invalid.wav Decode ... 

(Data) Resolving th125/se_slash.wav... not found
se_slash.wav Decode ... 

(Data) Resolving th125/se_ch00.wav... not found
se_ch00.wav Decode ... 

(Data) Resolving th125/se_ch01.wav... not found
se_ch01.wav Decode ... 

(Data) Resolving th125/se_extend.wav... not found
se_extend.wav Decode ... 

(Data) Resolving th125/se_cardget.wav... not found
se_cardget.wav Decode ... 

(Data) Resolving th125/se_nep00.wav... not found
se_nep00.wav Decode ... 

(Data) Resolving th125/se_bonus.wav... not found
se_bonus.wav Decode ... 

(Data) Resolving th125/se_bonus2.wav... not found
se_bonus2.wav Decode ... 

(Data) Resolving th125/se_enep02.wav... not found
se_enep02.wav Decode ... 

(Data) Resolving th125/se_ufo.wav... not found
se_ufo.wav Decode ... 

(Data) Resolving th125/se_lazer02.wav... not found
se_lazer02.wav Decode ... 

(Data) Resolving th125/se_changeitem.wav... not found
se_changeitem.wav Decode ... 

(Data) Resolving th125/se_ufoalert.wav... not found
se_ufoalert.wav Decode ... 

(Data) Resolving th125/se_piyo.wav... not found
se_piyo.wav Decode ... 

(Data) Resolving th125/se_nodamage.wav... not found
se_nodamage.wav Decode ... 

(Data) Resolving th125/se_boon00.wav... not found
se_boon00.wav Decode ... 

(Data) Resolving th125/se_don00.wav... not found
se_don00.wav Decode ... 

(Data) Resolving th125/se_boon01.wav... not found
se_boon01.wav Decode ... 

(Data) Resolving th125/se_shutter.wav... not found
se_shutter.wav Decode ... 

(Data) Resolving th125/se_focus.wav... not found
se_focus.wav Decode ... 

(Data) Resolving th125/se_nice.wav... not found
se_nice.wav Decode ... 

(Data) Resolving th125/se_focusin.wav... not found
se_focusin.wav Decode ... 

(Data) Resolving th125/se_focusfix.wav... not found
se_focusfix.wav Decode ... 

(Data) Resolving th125/se_focusfix2.wav... not found
se_focusfix2.wav Decode ... 

(Data) Resolving th125/se_focusrot.wav... not found
se_focusrot.wav Decode ... 

(Data) Resolving th125/se_ch02.wav... not found
se_ch02.wav Decode ... 

(Data) Resolving th125/se_cat01.wav... not found
se_cat01.wav Decode ... 

(Data) Resolving th125/sig.anm... not found
(JSON) Resolving th125/sig.anm.jdiff... not found
sig.anm Decode ... 

---- ANM ----
(PNG) Resolving th125/loading/sig.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/loading/sig.png
(PNG) Resolving th125/loading/sig.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/loading/sig.png
-------------
(Data) Resolving th125/ascii.anm... not found
(JSON) Resolving th125/ascii.anm.jdiff... not found
ascii.anm Decode ... 

---- ANM ----
(PNG) Resolving th125/ascii/ascii.png... 
  + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/script_latin/th125/ascii/ascii.png
(PNG) Resolving th125/ascii/loading.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/ascii/loading.png
-------------
(Data) Resolving th125/text.anm... 
 + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tsa/th125/text.anm
(JSON) Resolving th125/text.anm.jdiff... not found
text.anm Decode ... 

---- ANM ----
-------------
(Data) Resolving th125/thbgm.fmt... not found
(JSON) Resolving th125/thbgm.fmt.jdiff... not found
thbgm.fmt Decode ... 

(BGM) Resolving th125_00.{flac > ogg > mp3}... not found
(BGM) Resolving th125_01.{flac > ogg > mp3}... not found
(BGM) Resolving th125_03.{flac > ogg > mp3}... not found
(BGM) Resolving th125_04.{flac > ogg > mp3}... not found
(BGM) Resolving th125_05.{flac > ogg > mp3}... not found
(BGM) Resolving th125_06.{flac > ogg > mp3}... not found
(BGM) Resolving th125_07.{flac > ogg > mp3}... not found
(Data) Resolving th125/front.anm... not found
(JSON) Resolving th125/front.anm.jdiff... not found
front.anm Decode ... 

---- ANM ----
(PNG) Resolving th125/front/frontdisp.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/front/frontdisp.png
(PNG) Resolving th125/front/tutorial.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/front/tutorial.png
(PNG) Resolving th125/ascii/pause.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/ascii/pause.png
(PNG) Resolving th125/ascii/pause.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/ascii/pause.png
(PNG) Resolving th125/front/window.png... not found
-------------
(Data) Resolving th125/bullet.anm... not found
(JSON) Resolving th125/bullet.anm.jdiff... not found
bullet.anm Decode ... 

---- ANM ----
(PNG) Resolving th125/bullet/etama.png... not found
(PNG) Resolving th125/bullet/etama6.png... not found
(PNG) Resolving th125/bullet/etama2.png... not found
(PNG) Resolving th125/bullet/etama3.png... not found
(PNG) Resolving th125/bullet/eff01.png... not found
(PNG) Resolving th125/bullet/etama8.png... not found
(PNG) Resolving th125/bullet/etama9.png... not found
(PNG) Resolving th125/bullet/etbreak.png... not found
-------------
(Data) Resolving th125/photo.anm... not found
(JSON) Resolving th125/photo.anm.jdiff... not found
photo.anm Decode ... 

---- ANM ----
(PNG) Resolving th125/bullet/photo.png... not found
(PNG) Resolving th125/bullet/photo2.png... not found
(PNG) Resolving th125/front/rest.png... not found
-------------
C:\Users\Anon\AppData\Roaming\ShanghaiAlice\th125\scoreth125.dat Load ... 

(Data) Resolving th125/title.anm... not found
(JSON) Resolving th125/title.anm.jdiff... 
 + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/nmlgc/base_tsa/th125/title.anm.jdiff
title.anm Decode ... 

---- ANM ----
(PNG) Resolving th125/title/title01.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/title/title01.png
(PNG) Resolving th125/title/title09.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/title/title09.png
(PNG) Resolving th125/title/title00line.png... not found
(PNG) Resolving th125/title/title00.png... not found
(PNG) Resolving th125/title/title00.png... not found
(PNG) Resolving th125/title/title00b.png... not found
(PNG) Resolving th125/title/title03.png... not found
(PNG) Resolving th125/title/title03.png... not found
(PNG) Resolving th125/title/title07.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/title/title07.png
(PNG) Resolving th125/title/title10.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/title/title10.png
(Header) Sprite #144: [416, 0, 96, 16] → [416, 0, 608, 16]
(PNG) Resolving th125/title/title10.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/title/title10.png
(PNG) Resolving th125/title/logo00.png... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/title/logo00.png
-------------
(Data) Resolving th125/title_v.anm... not found
(JSON) Resolving th125/title_v.anm.jdiff... not found
title_v.anm Decode ... 

---- ANM ----
(PNG) Resolving th125/title/title_ver.png... not found
-------------
(Data) Resolving th125/mission.msg... 
    + D:/Games/Touhou/Touhou 12.5 - Double Spoiler/thcrap/repos/thpatch/lang_en/th125/mission.msg
mission.msg Decode ... 

scoreth125.dat open ...

scoreth125.dat open ...

C:\Users\Anon\AppData\Roaming\ShanghaiAlice\th125\th125.cfg write ...

C:\Users\Anon\AppData\Roaming\ShanghaiAlice\th125\log.txt write ...

Shutting down repatch watcher thread.
Statistics:
----
• Last error codes: 0 (queue), 0 (changes)
• Total number of file changes parsed: 0
• Maximum buffer fill state: 0/65536 bytes
----
Removing plug-ins...
